package com.gupao.other;

/**
 * 测试idea中线程打断点
 */
public class ThreadTest {
    public static void main(String[] args) {
        Thread t1 = new Thread(new Thread1());
        Thread t2 = new Thread(new Thread1());

        t1.start();
        t2.start();

        System.out.println("线程结束");
    }
}
class Thread1 implements Runnable{
    public void run() {
        System.out.println("我是线程" + Thread.currentThread().getName());
    }
}

